import {connect} from 'react-redux'
import {setSong, setSongs} from '../action/index'
import RankDetail from 'components/rankDetail/RankDetail'

const mapDispatchToProps = (dispatch) => {
    return {
        setSongs: (songs) => {
            dispatch(setSongs(songs))
        },
        setSong: (song, index) => {
            dispatch(setSong(song, index))
        }
    }
}

export default connect(null, mapDispatchToProps)(RankDetail)